home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Views / Panes / WindowRootPane.h < prev   
Text File  |  2000-06-23  |  1KB  |  52 lines

  1. // WindowRootPane.h
  2.  
  3. #ifndef WindowRootPane_h
  4. #define WindowRootPane_h
  5.  
  6. #ifndef Pane_h
  7. #include "Pane.h"
  8. #endif
  9. #ifndef AcceptsSizeSuggestions_h
  10. #include "AcceptsSizeSuggestions.h"
  11. #endif
  12. #ifndef AcceptsConformanceToSize_h
  13. #include "AcceptsConformanceToSize.h"
  14. #endif
  15.  
  16. class WindowObject;
  17. class PointObject;
  18.  
  19. class WindowRootPane: public Pane,
  20.                              public AcceptsSizeSuggestions,
  21.                              public AcceptsConformanceToSize
  22.   {
  23.     private:
  24.         WindowObject& window;
  25.         
  26.     public:
  27.         WindowRootPane( WindowObject& );
  28.  
  29.         virtual inline void SetContent( View& );
  30.         void Clear();
  31.  
  32.         virtual void Adjust( Canvas& ) const;
  33.  
  34.         void Deliver( CellVisitor& ) const;
  35.         void AnnounceSizeChange();
  36.         
  37.         const PointObject MinimumSize() const;
  38.         const PointObject MaximumSize() const;
  39.         const PointObject ReasonableSize() const;
  40.         const PointObject BestSize( PointObject maximum ) const;
  41.   };
  42.  
  43.  
  44. inline void WindowRootPane::SetContent( View& view )
  45.   {
  46.     AcceptsSizeSuggestions::SetContent( view );
  47.     Pane::SetContent( view );
  48.     AcceptsConformanceToSize::SetContent( view );
  49.   }
  50.  
  51. #endif
  52.